home *** CD-ROM | disk | FTP | other *** search
/ Aminet 24 / Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso / Aminet / dev / c / AmiVoGL_MDEV.lha / hershey / src / Makefile.sgi < prev    next >
Makefile  |  1991-09-27  |  2KB  |  60 lines

  1. #
  2. # Makes the hershey library.
  3. # Makes the binary Hershey font files for an SGI
  4. #
  5. CC = cc
  6. FONTLIB = /usr/local/lib/hershey
  7. CFLAGS = -O -float -DFONTLIB=\"$(FONTLIB)\" -DSGI
  8.  
  9. OURLIBS = libhershey.a
  10. LIBS = -lgl_s
  11. RANLIB = echo
  12. SHELL = /bin/sh
  13.  
  14. HDR = h2v.h
  15.  
  16. all:    libhershey.a h2v hdisp fdisp fonts
  17.  
  18. libhershey.a: htext.o check.o halloc.o fhtext.o
  19.     ar rcv libhershey.a htext.o check.o halloc.o fhtext.o
  20.     $(RANLIB) libhershey.a
  21.  
  22.  
  23. h2v:    h2v.o getchar.o
  24.     $(CC) -o $@ $@.o getchar.o -lm
  25.  
  26. hdisp:    hdisp.o getchar.o libhershey.a
  27.     $(CC) -o $@ $@.o getchar.o $(OURLIBS) $(LIBS) -lm
  28.  
  29. fdisp:    fdisp.o libhershey.a
  30.     $(CC) -o $@ $@.o $(OURLIBS) $(LIBS) -lm
  31.  
  32. $(FONTLIB):
  33.     if test ! -d $(FONTLIB);\
  34.     then mkdir $(FONTLIB);\
  35.     fi;
  36.  
  37. fonts:    h2v $(FONTLIB)
  38.     h2v ../data/hersh.oc
  39.     h2v ../data/hersh.or ../fonts/japan.hmp japanese
  40.     mv astrology cursive cyrillic futura.l futura.m gothic.eng \
  41.     gothic.ger gothic.ita greek japanese markers math.low \
  42.     math.upp meteorology music script symbolic times.g \
  43.     times.i times.ib times.r times.rb $(FONTLIB)
  44.     touch fonts
  45.  
  46. h2v: h2v.h
  47.  
  48. clean:
  49.     rm -f astrology cursive cyrillic futura.l futura.m gothic.eng \
  50.     gothic.ger gothic.ita greek japanese markers math.low \
  51.     math.upp meteorology music script symbolic times.g \
  52.     times.i times.ib times.r times.rb *.o core fonts libhershey.a
  53.  
  54. clobber:
  55.     rm -f astrology cursive cyrillic futura.l futura.m gothic.eng \
  56.     gothic.ger gothic.ita greek japanese markers math.low \
  57.     math.upp meteorology music script symbolic times.g \
  58.     times.i times.ib times.r times.rb *.o core h2v hdisp fdisp fonts \
  59.     libhershey.a
  60.